package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.VehicleMapper;
import com.wanmait.baohan.pojo.Vehicle;
import com.wanmait.baohan.service.VehicleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class VehicleServiceImpl implements VehicleService {
    @Resource
    private VehicleMapper vehicleMapper;
    @Override
    public List<Vehicle> findLeisureCar(String date1 , String date2) {
        return vehicleMapper.findLeisureCar(date1, date2);
    }

    @Override
    public List<Vehicle> findAllCarByList(List<Vehicle> cars) {
        return vehicleMapper.findAllCarByList(cars);
    }

    @Override
    public void insert(Vehicle object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Vehicle object) {
        vehicleMapper.updateByPrimaryKey(object);
    }

    @Override
    public Vehicle findById(Integer id) {
        return null;
    }

    @Override
    public List<Vehicle> findAll() {
        return null;
    }

    @Override
    public List<Vehicle> findAll(Vehicle object) {
        return null;
    }

    @Override
    public PageInfo<Vehicle> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Vehicle> findPage() {
        return null;
    }

    @Override
    public PageInfo<Vehicle> findPage(int pageNum, Vehicle object) {
        return null;
    }

    @Override
    public PageInfo<Vehicle> findPage(Vehicle object) {
        return null;
    }
}
